t = (i for i in range(1, 4))
print(t)
t = tuple(t)
print(t)

# 遍历
for item in t:
    print(item)

print("-----------------------------")

y = (i for i in range(1, 4))
print(y.__next__())     # 1
print(y.__next__())     # 2
print(y.__next__())     # 3

y = tuple(y)
print(y)        # ()


